﻿#region Imports
using System;
using System.Collections.ObjectModel;
using System.IO;
using System.Linq;
using System.Text;
using CommonUtilities.Enums;
using CommonUtilities.Extensions;
using CommonUtilities.Util;
using Numister.Models;
#endregion Imports

namespace Numister.ViewModels
{
    /// <summary>
    /// TODO: Update summary.
    /// </summary>
    public class MainViewModel : BaseViewModel
    {
        public MainViewModel()
        {
            var data = File.ReadAllLines(@"C:\Users\rhythm divine\Documents\Visual Studio 2010\Projects\Numister\Numister\_Database\`countries.tsv", Encoding.Default).ToObservableCollection();
            var final = data.Select(c => new Country { Id = Guid.NewGuid(), Name = c }).ToObservableCollection()
                .SerializeToFormattedData<ObservableCollection<Country>>(eSerializationFormat.Xml);
        }
    }
}
